﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucHeader.ascx.cs" Inherits="SF.Dict.Web.UserControls.ucHeader" %>
<div id="header">
	<h1 id="logo">
		<a href="/">挚友云海</a>
	</h1>
	<div id="nav_holder">
		<div id="PopMenuContainer">
			<div id="pop_voc_list_holder">
				<div id="pop_voc_list_inner">
					<div id="pop_voc_list_triangle">
					</div>
					<ul class="sidemenu" id="pop_voc_list">
						<asp:Repeater ID="rp_popvoclist" runat="server">
							<ItemTemplate>
								<li class=""><a href="/voc.aspx?vid=<%#Eval("Vid")%>"><span class="avatar">
									<img alt="" class="logo" src="http://s.libdd.com/img/element/blog_image_64_64.png" />
								</span><span class="name">
									<%#Eval("Name")%></a></span> </a></li>
							</ItemTemplate>
						</asp:Repeater>
						<li class="sub"><a title="再创建一门词汇表" href="/create.aspx"><span class="aside-icon"></span>
							再创建一门词汇表 </a></li>
					</ul>
				</div>
			</div>
		</div>
		<ul id="nav">
			<li class="<%= (PageName=="Home" ? "current" : "") %>"><a href="/Home.aspx">首页</a></li>
			<li class="<%= (",List,Voc,".IndexOf(","+PageName+",") != -1 ? "current" : "") %>"><a
				href="/List.aspx" id="nav-explore">词汇表</a><s></s></li>
			<li class="voc-action"><a id="more_voc" class="more-voc action" title="我的词汇表">更多</a>
				<a class="new-voc action" title="创建一门词汇表" href="/create.aspx">创建</a> </li>
		</ul>
		<script type="text/javascript">
			$(document).ready(
				function () {

					$(document).click(function (e) {
						var e = e ? e : window.event;
						var tar = e.srcElement || e.target;
						if (tar.id == "more_voc") {
							$('#pop_voc_list_holder').toggle();
						}
						else if (tar.id != "pop_voc_list_holder") {
							$('#pop_voc_list_holder').hide();
						}
					});
				}
			);
		</script>
	</div>
	<ul id="sub-nav">
		<li><a href="/Login.aspx?logout=I'll come back">退出</a></li>
		<li><a title="意见建议" href="/advise.aspx">意见</a></li><li><a href="/setting.aspx">设置</a></li><li>
			<asp:HyperLink ID="hl_user" runat="server"></asp:HyperLink></li>
	</ul>
	<div id="search">
		<div class="search-wrap">
			<input type="text" value="" name="q" autocomplete="off" class="input-tip" />
			<button id="tag-search-btn" type="submit">
				搜索</button>
		</div>
		<div style="display: none;" id="tag-search-tip">
			比如电影，美食，旅行，时尚</div>
	</div>
	<div class="clear">
	</div>
</div>
